package com.wwwc.index.servlet;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.SQLException;

import com.wwwc.util.web.*;

public class DirectoryDetails implements Serializable {
    private String did = null;
    private int type = 0;
    private String name = null;
    private String linkContext  = null;
    private String link = null;
    private String pid  = null;
    private int position_x = 0;
    private String  gid  = null;
    private String gname = null;

    private int dir_level = 0;
    private int dir_age   = 0;
    private int preview_level = 0;
    private int preview_age   = 0;
    private int read_level  = 0;
    private int read_age    = 0;
    private int write_level = 0;
    private int write_age   = 0;
    private String managers = null;
    private String admins   = null;
    private boolean show = false;
    private boolean open = false;

    public String getId() {
	return this.did;
    }

    public String getName() {
	return this.name;
    }

    public int getType() {
	return this.type;
    }

    public String getGroupId() {
	return this.gid;
    }
    public String getGroupName() {
	return this.gname;
    }

    public String getLinkContext() {
	return this.linkContext;
    }

    public String getLink() {
	return this.link;
    }

    public String getParentId() {
	return this.pid;
    }

    public int getPositionX() {
	return this.position_x;
    }

    public int getDirectoryLevel() {
	return this.dir_level;
    }
    public int getDirectoryAge() {
	return this.dir_age;
    }
    public int getPreviewLevel() {
	return this.preview_level;
    }
    public int getPreviewAge() {
	return this.preview_age;
    }

    public int getReadLevel() {
	return this.read_level;
    }
    public int getReadAge() {
	return this.read_age;
    }

    public int getWriteLevel() {
	return this.write_level;
    }
    public int getWriteAge() {
	return this.write_age;
    }

    public String getManagers() {
	return this.managers;
    }
    public String getAdmins() {
	return this.admins;
    }

    public boolean getShow() {
	return this.show;
    }

    public boolean getOpen() {
	return this.open;
    }

    public void setId(String id) {
	this.did = id;
    }

    public void setPositionX(String did) {
	int position = 0;    
	for (int i=0; i<did.length();i++) {
	    if(did.charAt(i)=='-') {
		position++;
	    }
	}
	this.position_x = position;
    }

    public void setGroupId(String gid) {
	this.did = did;
    }
    public void setGroupName(String gname) {
	this.gname = gname;
    }

    public void setType(int type) {
	this.type = type;
    }

    public void setName(String name) {
	this.name = name;
    }
   
    public void setLinkContext(String ct) {
	this.linkContext = ct;
    }

    public void setLink(String link) {
	this.link = link;
    }

    public void setParentId(String pid) {
	this.pid=pid;
    }

    public void setDirectoryLevel(int level) {
	this.dir_level=level;
    }
    public void setDirectoryAge(int age) {
	this.dir_age=age;
    }

    public void setPreviewLevel(int level) {
	this.preview_level=level;
    }
    public void setPreviewAge(int age) {
	this.preview_age=age;
    }

    public void setReadLevel(int level) {
	this.read_level=level;
    }
    public void setReadAge(int age) {
	this.read_age=age;
    }

    public void setWriteLevel(int level) {
	this.write_level=level;
    }
    public void setWriteAge(int age) {
	this.write_age=age;
    }

    public void setManagers(String mgs) {
	this.managers = mgs;
    }

    public void setAdmins(String adm) {
	this.admins=adm;
    }

    public void setShow(boolean show) {
	this.show = show;
    }
    public void setOpen(boolean open) {
	this.open = open;
    }
}








